#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Paul
#
# Created:     13/03/2012
# Copyright:   (c) Paul 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python

def main():
    #find max value in dictionary
    td = {0: ['b',3], 1: ['b',6], 4: ['b',2], 3: ['b',5] }
    print td
    print td.keys()
    print td.values()
    maxval = max([(v,s,k) for (k,(s,v)) in td.iteritems()])
    print maxval

if __name__ == '__main__':
    main()
